package com.uzai.console.jsonvo.merbaseconfig;

import com.google.common.collect.Lists;
import lombok.Data;
import org.checkerframework.checker.units.qual.A;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author liuqi
 * @date 2022年05月05日 17:44
 */
@Data
public class HandExpiredOrdersConfigJson implements Serializable{

    private static final long serialVersionUID = 145330060404795590L;

    //天数
    private int day;

    //是否启用
    private int enable;

    //订单类型, 1: 淘宝, 2: 京东, 3: 拼多多, 4: 唯品会, 5: 抖音, 6: 美团, 7: 饿了么; 8：快手
    private int type;

    //是否结算, 0: 不结算, 1: 结算
    private int settle;

    // 来源状态(涉及两个字段), 1: 未收货 - 订单状态, 2: 冻结 - 订单返利状态
    private List<Integer> sourceStatus;

    //是否结算, 订单状态, 2: 失效, 1: 结算
    private Integer status;

    public List<Integer> getSourceStatus() {
        if(sourceStatus == null || sourceStatus.size() == 0){
            sourceStatus = Lists.newArrayList(1); //默认选择未收货订单
        }
        return sourceStatus;
    }

    public void setSourceStatus(List<Integer> sourceStatus) {
        this.sourceStatus = sourceStatus;
    }

}


